﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SqlClient;

namespace TravelForwardContracts 
{
    class XDatabaseOp 
    {
        private String m_connectionString;
        private SqlConnection m_sqlConnection;

        public XDatabaseOp()
        {
            m_connectionString =
                "Data Source=LITIAN\\SQLEXPRESS;Initial Catalog=TravelexForwardContract;Integrated Security=true"; ;
            m_sqlConnection = new SqlConnection(m_connectionString);
        }

        public int closeDb()
        {
            try
            {
                m_sqlConnection.Close();
            }
            catch (Exception ex)
            {
                throw
            }

            return 0;
        }


    }
}
